home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / content / nsIImageDocument.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  6KB  |  176 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIImageDocument.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIImageDocument_h__
  6. #define __gen_nsIImageDocument_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class imgIRequest; /* forward declaration */
  18.  
  19.  
  20. /* starting interface:    nsIImageDocument */
  21. #define NS_IIMAGEDOCUMENT_IID_STR "7b80eebc-c98e-4461-8bdb-6e3b6e828890"
  22.  
  23. #define NS_IIMAGEDOCUMENT_IID \
  24.   {0x7b80eebc, 0xc98e, 0x4461, \
  25.     { 0x8b, 0xdb, 0x6e, 0x3b, 0x6e, 0x82, 0x88, 0x90 }}
  26.  
  27. class NS_NO_VTABLE nsIImageDocument : public nsISupports {
  28.  public: 
  29.  
  30.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IIMAGEDOCUMENT_IID)
  31.  
  32.   /* readonly attribute boolean imageResizingEnabled; */
  33.   NS_IMETHOD GetImageResizingEnabled(PRBool *aImageResizingEnabled) = 0;
  34.  
  35.   /* readonly attribute boolean imageIsOverflowing; */
  36.   NS_IMETHOD GetImageIsOverflowing(PRBool *aImageIsOverflowing) = 0;
  37.  
  38.   /* readonly attribute boolean imageIsResized; */
  39.   NS_IMETHOD GetImageIsResized(PRBool *aImageIsResized) = 0;
  40.  
  41.   /* readonly attribute imgIRequest imageRequest; */
  42.   NS_IMETHOD GetImageRequest(imgIRequest * *aImageRequest) = 0;
  43.  
  44.   /* void shrinkToFit (); */
  45.   NS_IMETHOD ShrinkToFit(void) = 0;
  46.  
  47.   /* void restoreImage (); */
  48.   NS_IMETHOD RestoreImage(void) = 0;
  49.  
  50.   /* void restoreImageTo (in long x, in long y); */
  51.   NS_IMETHOD RestoreImageTo(PRInt32 x, PRInt32 y) = 0;
  52.  
  53.   /* void toggleImageSize (); */
  54.   NS_IMETHOD ToggleImageSize(void) = 0;
  55.  
  56. };
  57.  
  58. /* Use this macro when declaring classes that implement this interface. */
  59. #define NS_DECL_NSIIMAGEDOCUMENT \
  60.   NS_IMETHOD GetImageResizingEnabled(PRBool *aImageResizingEnabled); \
  61.   NS_IMETHOD GetImageIsOverflowing(PRBool *aImageIsOverflowing); \
  62.   NS_IMETHOD GetImageIsResized(PRBool *aImageIsResized); \
  63.   NS_IMETHOD GetImageRequest(imgIRequest * *aImageRequest); \
  64.   NS_IMETHOD ShrinkToFit(void); \
  65.   NS_IMETHOD RestoreImage(void); \
  66.   NS_IMETHOD RestoreImageTo(PRInt32 x, PRInt32 y); \
  67.   NS_IMETHOD ToggleImageSize(void); 
  68.  
  69. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  70. #define NS_FORWARD_NSIIMAGEDOCUMENT(_to) \
  71.   NS_IMETHOD GetImageResizingEnabled(PRBool *aImageResizingEnabled) { return _to GetImageResizingEnabled(aImageResizingEnabled); } \
  72.   NS_IMETHOD GetImageIsOverflowing(PRBool *aImageIsOverflowing) { return _to GetImageIsOverflowing(aImageIsOverflowing); } \
  73.   NS_IMETHOD GetImageIsResized(PRBool *aImageIsResized) { return _to GetImageIsResized(aImageIsResized); } \
  74.   NS_IMETHOD GetImageRequest(imgIRequest * *aImageRequest) { return _to GetImageRequest(aImageRequest); } \
  75.   NS_IMETHOD ShrinkToFit(void) { return _to ShrinkToFit(); } \
  76.   NS_IMETHOD RestoreImage(void) { return _to RestoreImage(); } \
  77.   NS_IMETHOD RestoreImageTo(PRInt32 x, PRInt32 y) { return _to RestoreImageTo(x, y); } \
  78.   NS_IMETHOD ToggleImageSize(void) { return _to ToggleImageSize(); } 
  79.  
  80. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  81. #define NS_FORWARD_SAFE_NSIIMAGEDOCUMENT(_to) \
  82.   NS_IMETHOD GetImageResizingEnabled(PRBool *aImageResizingEnabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetImageResizingEnabled(aImageResizingEnabled); } \
  83.   NS_IMETHOD GetImageIsOverflowing(PRBool *aImageIsOverflowing) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetImageIsOverflowing(aImageIsOverflowing); } \
  84.   NS_IMETHOD GetImageIsResized(PRBool *aImageIsResized) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetImageIsResized(aImageIsResized); } \
  85.   NS_IMETHOD GetImageRequest(imgIRequest * *aImageRequest) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetImageRequest(aImageRequest); } \
  86.   NS_IMETHOD ShrinkToFit(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->ShrinkToFit(); } \
  87.   NS_IMETHOD RestoreImage(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->RestoreImage(); } \
  88.   NS_IMETHOD RestoreImageTo(PRInt32 x, PRInt32 y) { return !_to ? NS_ERROR_NULL_POINTER : _to->RestoreImageTo(x, y); } \
  89.   NS_IMETHOD ToggleImageSize(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToggleImageSize(); } 
  90.  
  91. #if 0
  92. /* Use the code below as a template for the implementation class for this interface. */
  93.  
  94. /* Header file */
  95. class nsImageDocument : public nsIImageDocument
  96. {
  97. public:
  98.   NS_DECL_ISUPPORTS
  99.   NS_DECL_NSIIMAGEDOCUMENT
  100.  
  101.   nsImageDocument();
  102.  
  103. private:
  104.   ~nsImageDocument();
  105.  
  106. protected:
  107.   /* additional members */
  108. };
  109.  
  110. /* Implementation file */
  111. NS_IMPL_ISUPPORTS1(nsImageDocument, nsIImageDocument)
  112.  
  113. nsImageDocument::nsImageDocument()
  114. {
  115.   /* member initializers and constructor code */
  116. }
  117.  
  118. nsImageDocument::~nsImageDocument()
  119. {
  120.   /* destructor code */
  121. }
  122.  
  123. /* readonly attribute boolean imageResizingEnabled; */
  124. NS_IMETHODIMP nsImageDocument::GetImageResizingEnabled(PRBool *aImageResizingEnabled)
  125. {
  126.     return NS_ERROR_NOT_IMPLEMENTED;
  127. }
  128.  
  129. /* readonly attribute boolean imageIsOverflowing; */
  130. NS_IMETHODIMP nsImageDocument::GetImageIsOverflowing(PRBool *aImageIsOverflowing)
  131. {
  132.     return NS_ERROR_NOT_IMPLEMENTED;
  133. }
  134.  
  135. /* readonly attribute boolean imageIsResized; */
  136. NS_IMETHODIMP nsImageDocument::GetImageIsResized(PRBool *aImageIsResized)
  137. {
  138.     return NS_ERROR_NOT_IMPLEMENTED;
  139. }
  140.  
  141. /* readonly attribute imgIRequest imageRequest; */
  142. NS_IMETHODIMP nsImageDocument::GetImageRequest(imgIRequest * *aImageRequest)
  143. {
  144.     return NS_ERROR_NOT_IMPLEMENTED;
  145. }
  146.  
  147. /* void shrinkToFit (); */
  148. NS_IMETHODIMP nsImageDocument::ShrinkToFit()
  149. {
  150.     return NS_ERROR_NOT_IMPLEMENTED;
  151. }
  152.  
  153. /* void restoreImage (); */
  154. NS_IMETHODIMP nsImageDocument::RestoreImage()
  155. {
  156.     return NS_ERROR_NOT_IMPLEMENTED;
  157. }
  158.  
  159. /* void restoreImageTo (in long x, in long y); */
  160. NS_IMETHODIMP nsImageDocument::RestoreImageTo(PRInt32 x, PRInt32 y)
  161. {
  162.     return NS_ERROR_NOT_IMPLEMENTED;
  163. }
  164.  
  165. /* void toggleImageSize (); */
  166. NS_IMETHODIMP nsImageDocument::ToggleImageSize()
  167. {
  168.     return NS_ERROR_NOT_IMPLEMENTED;
  169. }
  170.  
  171. /* End of implementation class template. */
  172. #endif
  173.  
  174.  
  175. #endif /* __gen_nsIImageDocument_h__ */
  176.